/*
 Navicat MySQL Data Transfer

 Source Server         : teacher
 Source Server Type    : MySQL
 Source Server Version : 50721
 Source Host           : 172.16.37.189
 Source Database       : 1810

 Target Server Type    : MySQL
 Target Server Version : 50721
 File Encoding         : utf-8

 Date: 07/16/2019 16:12:47 PM
*/

SET NAMES utf8;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
--  Table structure for `course`
-- ----------------------------
DROP TABLE IF EXISTS `course`;
CREATE TABLE `course` (
  `cid` char(4) NOT NULL,
  `cname` varchar(20) NOT NULL,
  `tid` bigint(20) NOT NULL,
  PRIMARY KEY (`cid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
--  Records of `course`
-- ----------------------------
BEGIN;
INSERT INTO `course` VALUES ('AI01', 'Python基础', '2017001'), ('AI02', 'Django开发', '2017002');
COMMIT;

-- ----------------------------
--  Table structure for `score`
-- ----------------------------
DROP TABLE IF EXISTS `score`;
CREATE TABLE `score` (
  `sid` bigint(20) NOT NULL,
  `cid` char(4) DEFAULT NULL,
  `score` int(11) DEFAULT NULL,
  `id` int(11) NOT NULL AUTO_INCREMENT,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;

-- ----------------------------
--  Records of `score`
-- ----------------------------
BEGIN;
INSERT INTO `score` VALUES ('201818100808', 'AI02', '88', '1'), ('201818100808', 'AI01', '99', '2'), ('201818100601', 'AI01', '60', '3'), ('201818100601', 'AI02', '50', '4'), ('201818100601', 'AI03', '100', '5');
COMMIT;

-- ----------------------------
--  Table structure for `student`
-- ----------------------------
DROP TABLE IF EXISTS `student`;
CREATE TABLE `student` (
  `sid` bigint(11) NOT NULL,
  `sname` varchar(20) DEFAULT NULL,
  `age` int(11) DEFAULT NULL,
  `sex` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`sid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
--  Records of `student`
-- ----------------------------
BEGIN;
INSERT INTO `student` VALUES ('20171201', '石鑫', '18', '男'), ('201818100601', '张飞', '21', '女'), ('201818100808', '赵子龙', '22', '男');
COMMIT;

-- ----------------------------
--  Table structure for `teacher`
-- ----------------------------
DROP TABLE IF EXISTS `teacher`;
CREATE TABLE `teacher` (
  `tid` bigint(20) NOT NULL,
  `tname` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`tid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
--  Records of `teacher`
-- ----------------------------
BEGIN;
INSERT INTO `teacher` VALUES ('2017001', '诸葛亮'), ('2017002', '司马懿');
COMMIT;

SET FOREIGN_KEY_CHECKS = 1;
